<?php

namespace App\Http\Services;

use App\Http\Model\AdvertiserCallbackLog;
use App\Http\Model\Hint;

class AdvertiserCallbackLogServices extends CommonServices
{
    public $advertiserCallbackLogModel;
    public function __construct()
    {
        parent::__construct();
        $this->advertiserCallbackLogModel = new AdvertiserCallbackLog();
    }

    /**
     * 新增数据
     * @param $data
     * @return int
     */
    public function insertData($data): int
    {
        return $this->advertiserCallbackLogModel->insertSingle($data);
    }

    /**
     * 根据条件更新
     * @param $condition
     * @param $data
     * @return bool
     */
    public function updateByCondition($condition, $data): bool
    {
        return $this->advertiserCallbackLogModel->singleUpdate($condition, $data);
    }



}
